    <div id="cart_content">
        <?php if(!$this->cart->contents()):
            echo 'You don\'t have any items yet.';
        else:?>
            <form action="<?php echo base_url(); ?>index.php/cart/update_cart" method="post" accept-charset="utf-8">
                <table class="table table-bordered table-hover table-condensed">
                    <thead>
                        <tr>
                            <th style="text-align: center;">Qty</th>
                            <th style="text-align: center;">Item Description</th>
                            <th style="text-align: center;">Item Price</th>
                            <th style="text-align: center;">Sub-Total</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $i = 1; ?>
                        <?php foreach($this->cart->contents() as $items): ?>
                        <input type="hidden" name="rowid[]" value="<?php echo $items['rowid']; ?>" />
                            <tr <?php if($i&1){ echo 'class="alt"'; }?>>
                                <td style="width: 3%">
                                    <input class="input-mini" style="width: 20px;" type="text" name="qty[]" value="<?php echo $items['qty']; ?>" maxlength="3" size="5" autocomplete="off">
                                </td>
                                <td style="text-align: center; width: 60%;"><?php echo $items['name']; ?></td>
                                <td style="text-align: center; width: 10%;"><?php echo number_format($items['price'] * 1000000); ?> VND</td>
                                <td style="text-align: center; width: 10%;"><?php echo number_format($items['subtotal'] * 1000000); ?> VND</td>
                            </tr>
                        <?php $i++; ?>
                        <?php endforeach; ?>
                        <tr>
                            <td colspan="3" style="text-align: center;"><strong>Total</strong></td>
                            <td style="text-align: center;"><span class="price"><?php echo number_format($this->cart->total() * 1000000); ?> VND</span></td>
                        </tr>
                    </tbody>
                </table>
                <input type="submit" value="Update your Cart" class="btn btn-primary btn-small" style="display: inline; margin-top: 0px;" name="update_cart">
                <a role="button" href="<?php echo base_url(); ?>index.php/cart/empty_cart" class="btn btn-warning btn-small empty">Empty your Cart</a>
                <a role="button" href="<?php echo base_url(); ?>index.php/cart/checkout" class="btn btn-success btn-small checkout pull-right">Checkout</a>
                <br/>
                <p><h5>If the quantity is set to zero, the item will be removed from the cart.</h5></p>

            </form>
            <?php
        endif;?>
    </div>
